package com.bite.book.model;

import lombok.Data;

@Data
public class PageRequest {
    private Integer curpage = 1;
    private Integer pagesize = 10;
    private Integer offset;

    public Integer getOffset() {
        return (curpage-1)*pagesize;
    }
}
